import http from '../utils/request'

export const selectManagerById = (id) => {
    return http.get(`/api/project/selectProjectById/${id}`)
}
export const updateManagerById = (params) => {
    console.log("发送的参数：", params);
    return http(
        {
            'url': "/api/project/updateProjectById",
            'method': 'put',
            'data':params
        }
    )
}

export const addManager = (params) => {
    console.log("发送的参数：", params);
    return http.post("/api/project/add", params)
}

export const selectManager = () => {
    return http.get("/api/user/selectManager")
}

export const selectProjectPages = (params) => {
    return http({
        'url': "/api/project/page",
        'method': "get",
        'params': params
    })
}

export const updateStatusById = (id) => {
    return http(
        {
            'url': `/api/project/updateStatusById/${id}`,
            'method': 'put',
        }
    )
}

export const deleteProById = (id)=>{
    console.log("发送的参数：", id);
    return http({
        'url':"/api/project/deleteProById",
        'method':'delete',
        'params':{id}
    })
}

export const selectStatus = ()=>{
    return http({
        'url':"/api/project/selectStatus",
        'method':'get'
    })
}